Skip to main content

tabWidths

Type

property

Summary

Specifies the width of columns in a field.

Syntax

set the tabWidths [of line <lineNumber>] of <field> to <tabWidthList>

Description

Use the tabWidths property to set the widths of columns in a field.

The tabWidths consists of one or more integers separated by commas. Each integer is the width in pixels of column. The tabWidths returns the relative widths of columns whereas the tabStops property returns the absolute positions of tabs.

Setting the tabWidths of a field to 20,20,20 will result in tab stops being placed at 20, 40 and 60 pixels.

Examples

set the tabWidths of field "Comments" to 20,20,20,0
set the tabWidths of field 1 to 40,80,120,160,200
set the tabWidths of line 2 to -2 of field "list" to tColumnWidths

message: tabKey

property: borderWidth, tabStops, vGrid, hGrid

Compatibility and Support

Introduced

LiveCode 5.5 Added

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?